<template>
    <!--about的动画效果-->
    <transition name="slide-fade-about">
      <slot></slot>
    </transition>
</template>

<script>
export default {
  name: 'Fade'
}
</script>

<style lang="stylus" scoped>
  .slide-fade-about{
    position: absolute;left:0;right: 0;
  }
  .slide-fade-about-enter, .slide-fade-about-leave-to {
    left:0;right: 0;
    transform: translateX(8px);
    opacity: 0;
  }
  .slide-fade-about-enter-active {
    transition: all 2s ease;
  }
  .slide-fade-about-leave-active {
    transition: all .6s cubic-bezier(2.0, 0.5, 0.8, 1.0);
  }
</style>
